package com.tcd.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tcd.pojo.User;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author space
 * @since 2021-05-21
 */
public interface UserService extends IService<User> {
    User getUserByAccountAndPassword(String userName, String password);

    List<User> getUserFilter(Integer pageIndex, Integer pageSize, String userName, Integer roleId);

    Integer getUserFilterCount(String userName, Integer roleId);

    Integer addUser(User user);

    Integer updateUser(User user);

    Integer deleteUsers(Integer[] ids);

    Integer setUserRoles(Integer uid,Integer[] roleIds);

    List<User> getUserByGroup(Integer groupId);
}
